<script>

 function zhuzi_for(){
            var contnet=$('#search_for').val();
         
              if(contnet){

                  return true;
              }else{
                  alert('请输入您要搜索的内容');
                  return false;
               }

	  }

</script>


<div class="wind_alldivs1" style=" height:500px;">
  <div class="auto">
      <div class="subnav"> 
    <ul class="crumbs">
        <li>我的位置：</li>
        <li><a href="{$site_url}">{$site_name}  </a></li>
       
        <li>&nbsp; &gt;<a href="{$Categorys[$catid]['url']}"> {$Categorys[$catid]['catname']} </a></li>
        <div class="clear"></div>
    </ul>
 
</div>

      <!-- 左边 -->
<link href="../Public/css/slideshow.css" rel="stylesheet" />
<link href="../Public/css/style_forum.css" rel="stylesheet" />
   
    <script src="../Public/js/slideshow.js" type="text/javascript"></script>
      <div class="comiis_wrapad" id="slideContainer">
        <div id="frameHlicAe" class="frame cl">
            <div class="temp"></div>
              <YP:flash flashid="39" key="kid" /> 
        </div>
    </div>
    <script type="text/javascript">
        SlideShow(3500);
    </script>
      <!-- 右边 -->
      
      <div class="forum_wind_right" style="border-radius:0; min-height:420px;">
        <input type="button" value="论坛公告"/>
        <div class="welcome">
            <YP:list name="Zforum_pul" id="r" order="id desc" key="k" limit="3">
            
              {if $k==1}
             <li class="welcome_z"><img style=" float:left"  src="../Public/images/huanying_01.png"/><a href="/index.php?m=Zforum_pul&a=show&id={$r['id']}"><span>{$r['title']|str_cut=###,30}</span></a></li>
              {/if}
        <ul class="gonggao">
              {if $k==1}
              <li class="li1">
                 <a href="/index.php?m=Zforum_pul&a=show&id={$r['id']}"> {$r['description']|str_cut=###,300}</a>
                 <div><?php echo  date( "Y-m-d",$r['createtime'])?></div>
              </li>
             {else} 
              <li class="title"><span><a href="/index.php?m=Zforum_pul&a=show&id={$r['id']}">{$r['title']|str_cut=###,30}</a></span><div style=" font-size:12px; color:#CCC"><?php echo  date(" Y-m-d",$r['createtime'])?></div></li>
             {/if}
           </YP:list>   
              <div style=" width:300px; margin-top:20px; text-align:center"><a href="{$Categorys[31]['url']}">查看往期公告</a></div>
        
        </ul>  
             
        </div>
        
        
      </div>
      <div style="clear:both;"></div>
      <div style="width:100%;height:40px;"></div>
          <!-- end -->
  </div>
</div>


<div class="auto">
<!--广告-->
      <div style="width:100%; height:170px; margin-top:30px;">
         <YP:flash flashid="40" key="kid" /> 
      </div>
<!--板块-->      
   <div  class="plate" >
             <div class="plate_title">
                 <img  style=" float:left; margin-top:4px;" src="../Public/images/plate_logo.png"/>
                 <li class="plate_li">主题●板块</li>
                 <li class="plate_li2">
                    <span style="float:right">
                        <form cation="/index.php?" method="get" id="search_h" onSubmit="return zhuzi_for();">
                            <input type="hidden"  name="m" value="Search"/>
                            <input id="date" type="hidden" name="module" value="Zforum_theme" /><!-- 搜索表名 -->
                           <input type="text" name="keyword" value="" id="search_for" placeholder="帖子搜索"  />
                           <input type="submit" value="搜索"  id="search_f"  />
                         </form>   
                    </span>
                 </li>
             </div>
             
             <div class="plate_main">
               <ul>
                <YP:list name="Zforum_plate" order="listorder asc" id="r">
                 <li>
                    <div class="platelogo"><a href="index.php?g=Home&m=Zforum_theme&a=forumlist&id=7&plateid={$r[id]}"><img style="float:left" width="65" height="65" src="{$r['icon']}"/></a>
                         <div class="plateinfo">
                           <p style="font-size:18px; font-weight:bold"><a href="index.php?g=Home&m=Zforum_theme&a=forumlist&id=7&plateid={$r[id]}">{$r['name']}</a></p>
                           <p style="">帖数：{$r.num}</p>
                           {php $zuihou=M('Zforum_theme')->where('plateid='.$r['id'])->limit(1)->order("createtime desc")->select()}
                           {if $zuihou}
                           <div style="width:100%"><a href="index.php?g=Home&m=Zforum_reply&a=index&id={$zuihou[0]['id']}&plateid={$r['id']}">{$zuihou[0]['title']|str_cut=###,30}</a><span  style=" float:right">{$zuihou[0]['createtime']|remianday=###}  &nbsp; &nbsp;{$zuihou[0]['username']}</span></div>
                           {/if}
                         </div>
                    </div>
                 </li>
                </YP:list>
                
               </ul>
             </div>
       
   </div> 
 <!--板块end-->   
   <div class="hos" style="width:100%; margin-top:30px; ">
       <div class="hosmian">
            <div class="hostitle">
                    最新精华
            </div>
         
            <div class="bd">
                <ul class="picList">
                 <YP:list name="Zforum_theme" where="essence=1" id="r"   key="k" order="createtime desc" limit="7">
                    <li>
                       <div class="topfor {if $k<4}top{$k}{else}yopqt{/if}">&nbsp;&nbsp;{$k}</div>
                       <span><a href="index.php?g=Home&m=Zforum_reply&a=index&id={$r['id']}&plateid={$r['plateid']}">{$r['title']|str_cut=###,40}</a></span>
                       <span style=" float:right">{$r['username']}</span>
                    </li> 
                 </YP:list>   
                    
                </ul>
                   
            </div>
        </div>
       
       
       
       <div class="hosmian" style=" margin-left:2.2%; margin-right:2.2% ">
            <div class="hostitle">
                    热门点击
            </div>

            <div class="bd">
                <ul class="picList">
                 <YP:list name="Zforum_theme" id="r" key="k" order="hits desc" limit="7">
                    <li>
                       <div class="topfor {if $k<4}top{$k}{else}yopqt{/if}">&nbsp;&nbsp;{$k}</div>
                       <span><a href="index.php?g=Home&m=Zforum_reply&a=index&id={$r['id']}&plateid={$r['plateid']}">{$r['title']|str_cut=###,40}</a></span>
                       <span style=" float:right">{$r['username']}</span>
                    </li> 
                   </YP:list>

                </ul>
                   
            </div>
        </div>
       <div class="hosmian">
            <div class="hostitle">
                    最新回复
            </div>

            <div class="bd" style=" ">
                <ul class="picList">
                     <YP:list name="Zforum_theme"  id="r"   key="k" order="updatetime desc" limit="7">
                    <li>
                       <div class="topfor {if $k<4}top{$k}{else}yopqt{/if}">&nbsp;&nbsp;{$k}</div>
                       <span><a href="index.php?g=Home&m=Zforum_reply&a=index&id={$r['id']}&plateid={$r['plateid']}">{$r['title']|str_cut=###,40}</a></span>
                       <span style=" float:right; m">{$r['username']}</span>
                    </li> 
                 </YP:list>   
                </ul>
                   
            </div>
        </div>
   </div> 
  <style>
  .avatar{border-radius:50%}
  </style> 
   
<!--推荐  --> 
   <div class="hos" style=" margin-top:30px; ">
       <div class="hosmian" style="border:#FFF solid 0px;">
            <div class="plate_title">
                 <img   style=" float:left; margin-top:4px;" src="../Public/images/plate_07.png"/>
                 <li class="plate_li">推荐设计师</li>
                 <li class="plate_li2" style="width:230px;"><span style="float:right"><a href="index.php?m=Yuyue&a=index&id=4">更多</a></span></li>
             </div>
             <div class="pos">
              <?php $result=M('User')->where('pos_hot=1 and groupid=1')->order('pos_time desc')->limit(3)->select();
                foreach($result as $k=>$r){
              ?>
                <ul style="margin-top:10px;" >
                    <li class="posli">
                       <div style="float:left"><a href="index.php?m=User&a=index&id={$r.id}"><img class="avatar" width="96" height="96" src="{$r['avatar']}" /></a></div>
                       <div style="float:left; margin-left:20px;">
                          <ul>
                            <li style="height:30px;line-height:30px; font-size:14px">设计师：<a href="index.php?m=User&a=index&id={$r.id}">{$r['username']}</a></li>
                            <li style="height:20px;line-height:20px;">所在地： ：{$r['province']|jgarea=###} {$r['city']|jgarea=###}</li>
                            <li style="height:20px; line-height:20px;">擅长空间：
                             <?php $itemType=explode(",",$r['itemType']); ?>
                                 <YP:list name="Label" where="genre=17" id="v" limit="50">
                                   <?php echo $v['id']==$itemType[0] ? $v['title'] : '';?>
                                </YP:list>
                            </li>
                            <li style="height:30px; line-height:30px;">收藏:<b>{$r['keep_num']}</b> / 作品:<b>{$r[case_num]}</b> / 帖子:<b>{$r['theme_num']}</b></li>
                          </ul>
                       </div>
                     </li> 
               </ul>
               <?php }?>
              
               
             
                   
            </div>
       </div>
   </div>  
  
  
  
 <!-- 2-->
 <div class="hos" style=" margin-top:30px; ">
       <div class="hosmian" style="border:#FFF solid 0px; margin-left:2.2%; margin-right:2.2%">
            <div class="plate_title">
                 <img  style=" float:left; margin-top:4px;" src="../Public/images/plate_t.png"/>
                 <li class="plate_li">推荐供应商</li>
                 <li class="plate_li2" style="width:230px;"><span style="float:right"><a href="index.php?m=Product&a=index&id=6">更多</a></span></li>
             </div>
             <div class="pos">
             
             <?php $result=M('User')->where('pos_hot=1 and groupid=3')->order('pos_time desc')->select();
                foreach($result as $k=>$r){
              ?>
                <ul style="margin-top:10px;" >
                    <li class="posli">
                       <div style="float:left"><a href="index.php?m=User&a=index&id={$r.id}"><img class="avatar" width="96" height="96" src="{$r['avatar']}" /></a></div>
                       <div style="float:left; margin-left:20px;">
                          <ul>
                            <li style="height:30px;line-height:30px; font-size:14px">供应商：<a href="index.php?m=User&a=index&id={$r.id}">{$r['username']}</a></li>
                            <li style="height:20px;line-height:20px;">商品： {$r['case_num']}</li>
                            <li style="height:20px; line-height:20px;">帖子：{$r['theme_num']}</li>
                            <li style="height:30px; line-height:30px;">收藏:{$r['keep_num']}</li>
                          </ul>
                       </div>
                     </li> 
               </ul>
               <?php }?>
               
               
              
                   
            </div>
       </div>
   </div>
 <!--  3-->
   
<style>
.ab_1{ margin-top:10px;}
/*a.title { color:#D3D3D4; background-color:rgba(0,0,0,0.6); 
filter:progid:DXImageTransform.Microsoft.Gradient(GradientType=0, StartColorStr='#A0000000', EndColorStr='#A0000000'); 
position: absolute; 
top: 173px; 
left:0; 
width:318px;
text-align:center;
line-height:30px;
text-decoration: none; 
font: 16px Microsoft YaHei, Verdana; 
color:#fff; }*/
</style>    
 <div class="hos" style=" margin-top:30px; ">
       <div class="hosmian" style="border:#FFF solid 0px;">
            <div class="plate_title">
                 <img  style=" float:left; margin-top:4px;" src="../Public/images/plate_p.png"/>
                 <li class="plate_li">专题●策划</li>
                 <li class="plate_li2" style="width:230px;">
                     <span style="float:right">
                      <a href="index.php?g=Home&m=Zforum_theme&a=forumlist&id=7&plateid=8">更多</a>
                     </span>
                 </li>
             </div>
             <div class="pos" style="border:#FFF solid 0px;padding: 1px 10px; height:420px;" >
               <YP:list name="Zforum_theme" id="v"  where="plateid=8 and pos_hot=1" limit="2" order="id desc">
                  
                  <div class="ab_{$key}" style=" position:relative; width:340px;"> 
                   <a href="index.php?g=Home&m=Zforum_reply&a=index&id={$v['id']}&plateid={$v['plateid']}"><img  src="{$v['pic']}" width="340" height="205" /></a>
                  
                  </div>
               
               </YP:list>
       
                   
            </div>
       </div>
   </div>  

  
  <div style="width:100%; margin-top:30px; height:30px; float:left"></div>  
</div>
<div style="clear:both;"></div>